package controller 
{
	import events.DisplayEvent;
	import events.PresetEvent;
	import flash.display.MovieClip;
	import flash.events.EventDispatcher;
	
	import data.PresetData;
	/**
	 * ...
	 * @author Henrik Riise Hansen
	 */
	
	public class PresetControl extends EventDispatcher
	{
		private var control:Controller;
		
		private var data:Array;
		private var presetData:Array;
		
		// preset item
		
		public function PresetControl(ctr:Controller,_data:Array,_presetData:Array) 
		{
			control = ctr;
			data = _data;
			presetData = _presetData;
		}
		
		public function upDate(presetItem:PresetData):void
		{
			dispatchEvent(new DisplayEvent(DisplayEvent.ON_PRESET_CHANGED, { presetItem:presetItem } ));
		}
	}
}